<?php
namespace app\common\model;

use think\model\concern\SoftDelete;

class ResumeWork extends Base
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';

    protected $hidden = [
        'user_id',
        'resume_id',
        'delete_time',
    ];

    public function getstartTimeAttr($val)
    {
        if(!$val) return '';
        return date('Y-m-d', $val);
    }

    public function getEndTimeAttr($val)
    {
        if(!$val) return '';
        return date('Y-m-d', $val);
    }
}